replace

Replaces some text in a string.

deprecated pure
T
replace
(
T
)
(,,,
bool caseSensitive = true
,
bool first = false
)
if (
isSomeString!T
)

Parameters

text T

The old text to replace from

oldText T

The text to remove

newText T

The text to replace oldText with

caseSensitive bool

Does 'A' and 'a' the same character? Default: true

first bool

Stop after the first instance of oldText? Default: false

Return Value

Type: T

The text that has been replaced

Meta